package com.blog.backend.utils;

import java.util.Random;

/**
 * @author fanggs
 * @Date 2021/7/12 0012 14:49
 */
public class EncryptUtils {

    private static char[] chars="qwertyuiopasdfghjklzxcvbnm1234567890".toCharArray();

    public static String getSalt(){
        StringBuilder stringBuilder=new StringBuilder();
        for(int i=0;i<15;i++){
            char ch=chars[new Random().nextInt(chars.length)];
            stringBuilder.append(ch);
        }
        return stringBuilder.toString();
    }
}
